out_dir = 'ctf';
VERSION = version('-release');
package_name = ['SpinW_', VERSION];
full_package = ['SpinW_', VERSION, '.ctf'];

mcc('-U', '-W', ['CTF:' package_name], ...
    '-d', out_dir, ...
    'matlab/call.m', ...
    '-a', '../swfiles', ...
    '-a', '../external', ...
    '-a', '../dat_files')
